/* 
 * File:   Exception.h
 * Author: doud
 *
 * Created on 27 décembre 2011, 01:53
 */
#include <iostream>
#include <iomanip>
#include <exception>

using namespace std;

#ifndef EXCEPTION_H
#define	EXCEPTION_H

class ErreurException : public exception {
public:

    virtual const char* what() const throw () {
        return "ExceptionErreur";
    }
};

class SyntaxeException : public ErreurException {
public:

    virtual const char* what() const throw () {
        return "ExceptionDeSyntaxe";
    }
};

class DivisionException : public ErreurException {
public:

    virtual const char* what() const throw () {
        return "ExceptionDivisionParZero";
    }
};

class ComparaisonException : public ErreurException {
public:

    virtual const char* what() const throw () {
        return "ExceptionMauvaiseComparaison";
    }
};

#endif	/* EXCEPTION_H */

